package com.my.vote.entity;

import android.text.TextUtils;

import cn.bmob.v3.BmobObject;

/**
 * 功能描述:个人对象-[对于后台数据库表对象]
 *
 * @author Xiao Jingxiang 肖景翔
 * @date 2018/4/11
 */
public class EUser  extends BmobObject {

    /**昵称*/
    private String userName;
    /**用户头像*/
    private String headUrl;
    /**用户账号*/
    private String account;
    /**密码*/
    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isLogin(){
        return !TextUtils.isEmpty(getObjectId());
    }
}
